package service.serviceimpl;

import dao.OrderDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.Cart;
import pojo.Order;
import service.OrderService;

import java.util.List;
@Service
public class OrderServiceimpl implements OrderService {
    @Autowired
    OrderDao orderDao;
    @Override
    public List<Cart> selectAll(int uid) {
        List<Cart> list = orderDao.selectAll(uid);
        return list;

    }
}
